package afeng.world.pangu;

import java.awt.*;
import java.awt.event.KeyEvent;

public class PressKey {


    public static void main(String[] args) throws AWTException {
        int[] keys = new int[]{KeyEvent.VK_J,KeyEvent.VK_K,KeyEvent.VK_LEFT, KeyEvent.VK_UP,KeyEvent.VK_DOWN,KeyEvent.VK_RIGHT};
        Robot robot = new Robot();
        while (true) {
            for (int i = 0; i < 6; i++) {
                int key = keys[i];
                robot.keyPress(key);
                robot.delay(5);
            }
            for (int i = 0; i < 6; i++) {
                for (int j = 0; j < 6; j++) {
                    robot.keyPress(keys[i]);
                    robot.delay(5);
                    robot.keyPress(keys[j]);
                    robot.delay(5);
                }
            }
        }

    }
    public String test(){
        System.out.println("Test  ....");
        return "1";
    }
}
